package com.pine.app.module.security.core.authorize.decisions;

import com.pine.app.module.security.core.authorize.metadataSource.ConfigAttribute;
import com.pine.app.module.security.core.authorize.metadataSource.PermissionType;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author xiaoyuan
 * @create 2020/3/23 16:12
 **/
public class AnonAuthorizeDecision implements AuthorizeDecision {
    @Override
    public boolean decide(List<ConfigAttribute> list, HttpServletRequest request, String...  target) {
        return true;
    }

    @Override
    public String getType() {
        return PermissionType.ANON.getCode();
    }
}
